package model

type person struct {
	Name    string
	age     uint
	sallary float64
}

func NewPerson(name string) *person {
	return &person{
		Name: name,
	}
}
func (p *person) SetAge(age uint) {
	if age > 0 && age < 150 {
		p.age = age
	}
}

func (p *person) GetAge() uint {
	return p.age
}
